﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Graphics.Imaging;
using Windows.Foundation;

namespace GifAnimator
{
    public class Metadata
    {
        public string Name { get; private set; }
        public PropertyType Type { get; private set; }
        public object Value { get; set; }
        public KeyValuePair<string, BitmapTypedValue> Metadatas { get; private set; }

        public Metadata(string name, PropertyType type, object value = null)
        {
            this.Name = name;
            this.Type = type;
            this.Value = value;
        }

        public KeyValuePair<string, BitmapTypedValue>  GetMetadata(string name, object value, PropertyType type)
        {
            return new KeyValuePair<string, BitmapTypedValue>(Name, new BitmapTypedValue(Value, Type));
        }
    }
}
